<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>图片底侧空白缝隙问题</title>
</head>
<style>
    div {
        border: 2px solid red;
    }

    img {
        vertical-align: bottom;
    }


</style>
<body>
<div>
    <img src="images/user.jpg"> This is a demo
</div>
</body>
</html>